import Router from 'vue-router';
import layout from '@/layout/index.vue'
export default new Router({
	routes: [{
			path: '/',
			redirect: '/pages/index/index',
			component: layout,
			meta: {
				title: '首页'
			},
			children: [{
				path: '/pages/index/index',
				name: 'home',
				meta: {
					title: '首页'
				},
				component: () => import('@/view/home/home.vue')
			}]
		},
		{
			path: '/project',
			redirect: '/pages/project/project',
			component: layout,
			meta: {
				title: '项目展示'
			},
			children: [{
				path: '/pages/project/project',
				name: 'project',
				meta: {
					title: '项目展示'
				},
				component: () => import('@/view/project/project.vue')
			}]
		},
		{
			path: '/about',
			redirect: '/pagesHome/homeAbout/homeAbout',
			component: layout,
			meta: {
				title: '关于我们'
			},
			children: [{
				path: '/pagesHome/homeAbout/homeAbout',
				name: 'about',
				meta: {
					title: '关于我们'
				},
				component: () => import('@/view/about/about.vue')
			}]
		},
		{
			path: '/VRPage',
			redirect: '/pagesHome/VRPage/VRPage',
			component: layout,
			meta: {
				title: 'VR展示'
			},
			children: [{
				path: '/pagesHome/VRPage/VRPage',
				name: 'about',
				meta: {
					title: 'VR展示'
				},
				component: () => import('@/view/VRPage/VRPage.vue')
			}]
		},
		{
			path: '/classroomList',
			redirect: '/pagesHome/classroomList/classroomList',
			component: layout,
			meta: {
				title: '诺众微课堂'
			},
			children: [{
				path: '/pagesHome/classroomList/classroomList',
				name: 'classroomList',
				meta: {
					title: '诺众微课堂'
				},
				component: () => import('@/view/classroomList/classroomList.vue')
			}]
		},
		{
			path: '/mine',
			redirect: '/pages/mine/mine',
			component: layout,
			meta: {
				title: '个人中心'
			},
			children: [{
				path: '/pages/mine/mine',
				name: 'mine',
				meta: {
					title: '个人中心'
				},
				component: () => import('@/view/mine/mine.vue')
			}]
		}
	]
})